<div id="ContentGroup">
    <div class="count-header">
        <a>模块信息添加</a>
    </div>
    <div class="count-content-group">
        <div class="count-content">
            <form  id="MKXX_Update" data-role="form" data-event="finish" data-type="post" data-url="<{'MKXX_Update_Action'|U}>">
    <input type="hidden" id="MKXX_BH_ORA"  name="MKXX_BH_ORA" value="<{$Model->MKXX_BH|security_encript}>" />
                <div class="count-content-title">模块信息</div>
                <div class="count-content-type"><{*此处添加全局注释*}></div>
                <div class="form-list-item">
                    <label class="form-list-item-label">模块分组</label>
                    <{$mkfz= MKFZ::query()}>
                    <{'MKFZ_BH'|html_dropdownlist:$mkfz.DataList:$Model->MKFZ_BH:'MKFZ_BH':'MKFZ_MC'}>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>名称</label>
                    <input type="text" id="MKXX_MC" name="MKXX_MC" value="<{$Model->MKXX_MC }>"/>
                    <p class="form-list-item-tip">进行系统权限控制时显示的模块名称</p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>控制器</label>
                    <input type="text" id="MKXX_KZQ" name="MKXX_KZQ" value="<{$Model->MKXX_KZQ }>"/>
                    <p class="form-list-item-tip">程序中该模块对应控制器的类名</p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>显示顺序</label>
                    <{'MKXX_XSSX'|html_dropdownlist:["1" , "2" , "3" , "4" , "5" , "6" , "7" , "8" , "9" , "10" , "11" , "12" , "13" , "14" , "15" , "16" , "17" , "18" , "19" , "20"]:$Model->MKXX_XSSX}>
                    <p class="form-list-item-tip">默认信息将按从小到大顺序排列</p>
                </div>
            </form>     
            <div class="form-operation">
                <span class="button" id="MKXX_Update-Submit">提交</span>
                <span class="button" data-role="back">返回</span>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("#ContentGroup").formset(0);//开启页面标签页
        //$("#MKXX_Insert").vtip();//开启鼠标提示.
        
        $("#MKXX_Update").validate({
            rules:{
                "MKXX_BH":{
                    "maxlength":50 ,
                    "required":true 
                }, 
                "MKFZ_BH":{
                    "maxlength":50 ,
                    "required":true 
                }, 
                "MKXX_MC":{
                    "maxlength":50 ,
                    "required":true 
                }, 
                "MKXX_KZQ":{
                    "maxlength":50 ,
                    "required":true 
                }, 
                "MKXX_XSSX":{
                    "required":true 
                }, 
                "example":{} //可继续追加jquery validate客户端验证条件
            },
            "errorClass": "form-list-item-warn",
            //errorPlacement: function (error, element) {element.attr("data-tips", error.text());},//关闭默认提示，使用鼠标提示框时使用
            submitHandler: function () {
                $("#MKXX_Update").trigger("finish");
            }
        });
    
        $("#MKXX_MC").attr("data-tip","进行系统权限控制时显示的模块名称");
        $("#MKXX_KZQ").attr("data-tip","程序中该模块对应控制器的类名");
        $("#MKXX_XSSX").attr("data-tip","默认信息将按从小到大顺序排列");
        $("#MKXX_Update-Submit").click(function () {
            $("#MKXX_Update").submit();
        });
    });
</script>

